﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Practices.Unity;
using Triunfadores.BusinessLogic.Service;
using Triunfadores.BusinessEntities;
using Triunfadores.Repository.Service;

namespace Triunfadores.BusinessLogic
{
    public class AccionService:IAccionService
    {
        [Dependency]
        public IAccionRepository AccionRepository { get; set; }

        public IEnumerable<Accion> ObtenerTodasLasAcciones()
        {
            return AccionRepository.ObtenerTodasLasAcciones();
        }

        public Accion ObtenerAccionPorId(int id)
        {
            return AccionRepository.ObtenerAccionPorId(id);
        }

        public void AddAccion(Accion accion)
        {
            AccionRepository.AddAccion(accion);
        }

        public void UpdateAccion(Accion accion)
        {
            AccionRepository.UpdateAccion(accion);
        }

        public void DeleteAccion(int id)
        {
            throw new NotImplementedException();
        }
    }
}

